package com.yanqu.road.web.controller.game;

import com.yanqu.road.utils.ConfigHelper;
import com.yanqu.road.web.controller.BaseHttpServlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet(urlPatterns = "/testLine")
public class TestLine extends BaseHttpServlet {

    private static final long serialVersionUID = 1L;

    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        doPost(req, resp);
    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        sendMessage(response, "online:" + ConfigHelper.getValue("serverId"));
    }
}
